package com.naizhuai.ui.entity.mainbusiness;

import android.text.TextUtils;

import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.naizhuai.ui.entity.LabelsConvertBean;

import java.io.Serializable;
import java.util.List;

/**
 * 行为分析数据结构体
 * Created by code_han on 2018/4/19.
 */

public class ActionCompareDataBean implements Serializable {
    //比较前数据
    private String bValue;
    //比较后数据
    private String aValue;
    //结构体的id
    private String pointId;
    //描述关键
    @SerializedName("label")
    private String pointName;
    //描述单位参数
    private String enteringName;
    //改前计算方式
    private String bFormula;
    //改后计算方式a
    private String aFormula;
    //效果金额
    private String simulatedAmount;
    //输入单位名字
    private String unit;
    //选择的设备名称
    private String machineName;
    //选择的设备key
    private String machineKey;

    public ActionCompareDataBean() {
    }

    public String getSimulatedAmount() {
        return simulatedAmount;
    }

    public void setSimulatedAmount(String simulatedAmount) {
        this.simulatedAmount = simulatedAmount;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getbValue() {
        return bValue;
    }

    public void setbValue(String bValue) {
        this.bValue = bValue;
    }

    public String getaValue() {
        return aValue;
    }

    public void setaValue(String aValue) {
        this.aValue = aValue;
    }

    public String getPointId() {
        return pointId;
    }

    public void setPointId(String pointId) {
        this.pointId = pointId;
    }

    public String getPointName() {
        return pointName;
    }

    public void setPointName(String pointName) {
        this.pointName = pointName;
    }

    public String getEnteringName() {
        return enteringName;
    }

    public void setEnteringName(String enteringName) {
        this.enteringName = enteringName;
    }

    public String getbFormula() {
        return bFormula;
    }

    public void setbFormula(String bFormula) {
        this.bFormula = bFormula;
    }

    public String getaFormula() {
        return aFormula;
    }

    public void setaFormula(String aFormula) {
        this.aFormula = aFormula;
    }

    public String getMachineName() {
        return machineName;
    }

    public void setMachineName(String machineName) {
        this.machineName = machineName;
    }

    public String getMachineKey() {
        return machineKey;
    }

    public void setMachineKey(String machineKey) {
        this.machineKey = machineKey;
    }

    @Override
    public String toString() {
        return getConstructureJson();
    }

    public ActionCompareDataBean isNullObject(String... strs) {
        for (String str : strs) {
            if (TextUtils.isEmpty(str))
                return null;
        }
        return this;
    }

    public String getConstructureJson() {
        Gson gson = new Gson();
        return gson.toJson(this);
    }
}
